home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / bat.zip / MULTI.BAT < prev    next >
DOS Batch File  |  1984-03-07  |  640b  |  31 lines

  1. bat * Multiple command execution utility
  2. bat if %1 = ? skip 1
  3. bat if .%1 <> . goto -valid
  4. bat cls begtype
  5. <<<<< Multiple command utility >>>>>
  6.  
  7. Executes a command against multiple
  8. files with a single line command.
  9.  
  10. Usage:
  11.   MULTI <cmd> <file1> <file2>..<file n>
  12.  
  13. end
  14. bat exit
  15. bat -valid if %2. = . exit
  16. %1 %2
  17. bat if %3. = . exit
  18. %1 %3
  19. bat if %4. = . exit
  20. %1 %4
  21. bat if %5. = . exit
  22. %1 %5
  23. bat if %6. = . exit
  24. %1 %6
  25. bat if %7. = . exit
  26. %1 %7
  27. bat if %8. = . exit
  28. %1 %8
  29. bat if %9. = . exit
  30. %1 %9
  31.